package wusiyuan.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import wusiyuan.dao.RemoveTheAddressDao;
import wusiyuan.dao.impl.RemoveTheAddressDaoImpl;


public class RemoveTheAddressServlet extends HttpServlet {
	private RemoveTheAddressDao remove=new RemoveTheAddressDaoImpl();
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String consignee = request.getParameter("consignee");
		String phone = request.getParameter("phone");
		Integer i= remove.RemoveTheAddress(consignee, phone);
		System.out.println(i);
		response.getWriter().print(i);
		
		
		
		
	}


	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
